﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EA9 RID: 3753
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonFormula : IMessage<RogueCommonFormula>, IMessage, IEquatable<RogueCommonFormula>, IDeepCloneable<RogueCommonFormula>, IBufferMessage
	{
		// Token: 0x17002F9E RID: 12190
		// (get) Token: 0x0600A82F RID: 43055 RVA: 0x001C6665 File Offset: 0x001C4865
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonFormula> Parser
		{
			get
			{
				return RogueCommonFormula._parser;
			}
		}

		// Token: 0x17002F9F RID: 12191
		// (get) Token: 0x0600A830 RID: 43056 RVA: 0x001C666C File Offset: 0x001C486C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonFormulaReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FA0 RID: 12192
		// (get) Token: 0x0600A831 RID: 43057 RVA: 0x001C667E File Offset: 0x001C487E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonFormula.Descriptor;
			}
		}

		// Token: 0x0600A832 RID: 43058 RVA: 0x001C6685 File Offset: 0x001C4885
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonFormula()
		{
		}

		// Token: 0x0600A833 RID: 43059 RVA: 0x001C668D File Offset: 0x001C488D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonFormula(RogueCommonFormula other) : this()
		{
			this.formulaInfo_ = ((other.formulaInfo_ != null) ? other.formulaInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A834 RID: 43060 RVA: 0x001C66C2 File Offset: 0x001C48C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonFormula Clone()
		{
			return new RogueCommonFormula(this);
		}

		// Token: 0x17002FA1 RID: 12193
		// (get) Token: 0x0600A835 RID: 43061 RVA: 0x001C66CA File Offset: 0x001C48CA
		// (set) Token: 0x0600A836 RID: 43062 RVA: 0x001C66D2 File Offset: 0x001C48D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaInfo FormulaInfo
		{
			get
			{
				return this.formulaInfo_;
			}
			set
			{
				this.formulaInfo_ = value;
			}
		}

		// Token: 0x0600A837 RID: 43063 RVA: 0x001C66DB File Offset: 0x001C48DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonFormula);
		}

		// Token: 0x0600A838 RID: 43064 RVA: 0x001C66E9 File Offset: 0x001C48E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonFormula other)
		{
			return other != null && (other == this || (object.Equals(this.FormulaInfo, other.FormulaInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A839 RID: 43065 RVA: 0x001C671C File Offset: 0x001C491C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.formulaInfo_ != null)
			{
				num ^= this.FormulaInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A83A RID: 43066 RVA: 0x001C6758 File Offset: 0x001C4958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A83B RID: 43067 RVA: 0x001C6760 File Offset: 0x001C4960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A83C RID: 43068 RVA: 0x001C6769 File Offset: 0x001C4969
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.formulaInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.FormulaInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A83D RID: 43069 RVA: 0x001C679C File Offset: 0x001C499C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.formulaInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FormulaInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A83E RID: 43070 RVA: 0x001C67DC File Offset: 0x001C49DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonFormula other)
		{
			if (other == null)
			{
				return;
			}
			if (other.formulaInfo_ != null)
			{
				if (this.formulaInfo_ == null)
				{
					this.FormulaInfo = new FormulaInfo();
				}
				this.FormulaInfo.MergeFrom(other.FormulaInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A83F RID: 43071 RVA: 0x001C6830 File Offset: 0x001C4A30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A840 RID: 43072 RVA: 0x001C683C File Offset: 0x001C4A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 122U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.formulaInfo_ == null)
					{
						this.FormulaInfo = new FormulaInfo();
					}
					input.ReadMessage(this.FormulaInfo);
				}
			}
		}

		// Token: 0x0400445B RID: 17499
		private static readonly MessageParser<RogueCommonFormula> _parser = new MessageParser<RogueCommonFormula>(() => new RogueCommonFormula());

		// Token: 0x0400445C RID: 17500
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400445D RID: 17501
		public const int FormulaInfoFieldNumber = 15;

		// Token: 0x0400445E RID: 17502
		private FormulaInfo formulaInfo_;
	}
}
